package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SnmpEquipmentinfoMapper;
import com.ruoyi.system.domain.SnmpEquipmentinfo;
import com.ruoyi.system.service.ISnmpEquipmentinfoService;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-21
 */
@Service
public class SnmpEquipmentinfoServiceImpl implements ISnmpEquipmentinfoService 
{
    @Autowired
    private SnmpEquipmentinfoMapper snmpEquipmentinfoMapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public SnmpEquipmentinfo selectSnmpEquipmentinfoById(Long id)
    {
        return snmpEquipmentinfoMapper.selectSnmpEquipmentinfoById(id);
    }

    /**
     * 查询列表
     * 
     * @param snmpEquipmentinfo 
     * @return 
     */
    @Override
    public List<SnmpEquipmentinfo> selectSnmpEquipmentinfoList(SnmpEquipmentinfo snmpEquipmentinfo)
    {
        return snmpEquipmentinfoMapper.selectSnmpEquipmentinfoList(snmpEquipmentinfo);
    }

    /**
     * 新增
     * 
     * @param snmpEquipmentinfo 
     * @return 结果
     */
    @Override
    public int insertSnmpEquipmentinfo(SnmpEquipmentinfo snmpEquipmentinfo)
    {
        return snmpEquipmentinfoMapper.insertSnmpEquipmentinfo(snmpEquipmentinfo);
    }

    /**
     * 修改
     * 
     * @param snmpEquipmentinfo 
     * @return 结果
     */
    @Override
    public int updateSnmpEquipmentinfo(SnmpEquipmentinfo snmpEquipmentinfo)
    {
        return snmpEquipmentinfoMapper.updateSnmpEquipmentinfo(snmpEquipmentinfo);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteSnmpEquipmentinfoByIds(Long[] ids)
    {
        return snmpEquipmentinfoMapper.deleteSnmpEquipmentinfoByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteSnmpEquipmentinfoById(Long id)
    {
        return snmpEquipmentinfoMapper.deleteSnmpEquipmentinfoById(id);
    }
}
